<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>个人信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/css/bootstrap.css" />
<script type="text/javascript">
	function getPower() {
		var power = document.getElementById("power").value;
		if (power == 0) {
			document.getElementById("power").value = "系统管理员";
		} else if (power == 1) {
			document.getElementById("power").value = "应急办工作人员";
		} else if (power == 2) {
			document.getElementById("power").value = "地震局工作人员";
		} else if (power == 3) {
			document.getElementById("power").value = "气象局工作人员";
		} else if (power == 4) {
			document.getElementById("power").value = "水文局工作人员";
		}
	}
</script>
</head>
<body>
	<div class="row-fluid" style="margin-top: 10px;">
		<div class="col-md-6">
			<h3>个人信息</h3>
			<form role="form" class="form-horizontal"
				method="post" id="checkForm">
				<div class="form-group">
					<label class="col-md-3 control-label" for="username">用户名</label>
					<div class="col-md-9">
						<input class="form-control" name="userBean.username" type="text"
							id="username" disabled="disabled" value="${bean.username}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label" for="password">密码</label>
					<div class="col-md-9">
						<input type="text" name="userBean.password" class="form-control"
							id="password" disabled="disabled" value="${bean.password }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label" for="dept">所属单位</label>
					<div class="col-md-9">
						<c:choose>
							<c:when test="${bean.power==0 }">
								<input type="text" name="mbean.dept" value="系统管理员"
									disabled="disabled" class="form-control" />
							</c:when>
							<c:when test="${bean.power==1 }">
								<input type="text" name="mbean.dept" value="应急办工作人员"
									disabled="disabled" class="form-control" />
							</c:when>
							<c:when test="${bean.power==2 }">
								<input type="text" name="mbean.dept" value="地震局工作人员"
									 disabled="disabled" class="form-control" />
							</c:when>
							<c:when test="${bean.power==3 }">
								<input type="text" name="mbean.dept" value="气象局工作人员"
									disabled="disabled" class="form-control" />
							</c:when>
							<c:when test="${bean.power==4 }">
								<input type="text" name="mbean.dept" value="水文局工作人员"
									disabled="disabled" class="form-control" />
							</c:when>
						</c:choose>
					</div>
				</div>
			</form>
		</div>
		<div class="col-md-3"></div>
	</div>
	<script
		src="${pageContext.request.contextPath}/static/js/jquery-1.12.1.js"
		type="text/javascript"></script>
	<script
		src="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/js/bootstrap.js"
		type="text/javascript"></script>
	<script
		src="${pageContext.request.contextPath}/static/js/jquery.validate.js"
		type="text/javascript"></script>
	<script
		src="${pageContext.request.contextPath}/static/js/myValidate.js"
		type="text/javascript"></script>

</body>
</html>